package com.yeild.service.apis.hello.interfaces

import io.quarkus.runtime.StartupEvent
import io.vertx.ext.web.Router
import io.vertx.ext.web.handler.FileSystemAccess
import io.vertx.ext.web.handler.StaticHandler
import jakarta.enterprise.event.Observes

class StaticResources {
    fun installRoute(@Observes event: StartupEvent, router: Router) {
        router.route().path("/static/*").handler(
            StaticHandler.create(FileSystemAccess.ROOT, "/Users/a1/Downloads/").setDefaultContentEncoding("UTF-8")
        )
    }
}